import { offRoute, onRoute } from '../../common';
import { RouteCallback } from '../../common/router';

const ALBUM_PATTERN = '/:country/album/:slug?/:id';

export function onAlbumRoute(cb: RouteCallback, once = false) {
	onRoute(ALBUM_PATTERN, cb, once);
}

export function offAlbumRoute(cb: RouteCallback, once = false) {
	offRoute(ALBUM_PATTERN, cb, once);
}
